package com.mconnect.msurvey.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * Osoba polecana przez ankietowanego
 * @author mc104910
 *
 */
@Entity
@Table(name = "responder_recommended")
public class ResponderRecommended implements Serializable{
	private static final long serialVersionUID = -117315549837098706L;
	private int id_recommended;
	private String firstName = "none";
	private String lastName = "none";
	private int phone = -1;
	private String mail = "brak";
	private String recConfirm = "NIE";
	
	@Id
	@GeneratedValue
	public int getId_recommended() {
		return id_recommended;
	}
	public void setId_recommended(int id_recommended) {
		this.id_recommended = id_recommended;
	}
	
	@Column(length=30)
	public String getFirstName() {
		return firstName;
	}
	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}
	@Column(length=30)
	public String getLastName() {
		return lastName;
	}
	public void setLastName(String lastName) {
		this.lastName = lastName;
	}
	@Column(length=10)
	public int getPhone() {
		return phone;
	}
	
	public void setPhone(int phone) {
		this.phone = phone;
	}
	@Column(length=30)
	public String getMail() {
		return mail;
	}
	public void setMail(String mail) {
		this.mail = mail;
	}
	@Column(length=3)
	public String getRecConfirm() {
		return recConfirm;
	}
	public void setRecConfirm(String recConfirm) {
		this.recConfirm = recConfirm;
	}
	@Override
	public String toString() {
		return "ResponderRecommended [id_recommended=" + id_recommended
				+ ", firstName=" + firstName + ", lastName=" + lastName
				+ ", phone=" + phone + ", mail=" + mail + ", recConfirm="
				+ recConfirm + "]";
	}
	
	
	
	
}
